package com.admin.service;

import com.admin.model.SensitiveWords;
import com.alibaba.nacos.api.exception.NacosException;
import com.github.pagehelper.PageInfo;

public interface SensitiveWordsService {

    // 添加敏感词
    void insertSensitiveWord(SensitiveWords sensitiveWords) throws NacosException;

    // 根据ID删除敏感词
    void deleteSensitiveWordById(SensitiveWords sensitiveWords) throws NacosException;

    //分页查询
    PageInfo<SensitiveWords> selectSensitiveWordsByPage(int pageNum, int pageSize);
}
